<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <link rel="icon" href="/favicon.ico">
  <link rel="icon" type="image/svg+xml" href="/favicon.svg">
  <link rel="apple-touch-icon" href="/avatars/ai-default.svg">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="description" content="AI智能助手提供专业的AI对话服务，包含AI恋爱大师和AI超级智能体两大应用，助您解决各类问题">
  <meta name="keywords" content="AI智能助手,人工智能对话,AI恋爱大师,AI超级智能体,智能聊天,AI问答">
  <meta name="theme-color" content="#9c27b0">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  <meta name="author" content="AI智能助手团队">
  <meta name="robots" content="index, follow">
  <meta property="og:title" content="AI智能助手 - 专业的AI对话系统">
  <meta property="og:description" content="AI智能助手提供专业的AI对话服务，包含AI恋爱大师和AI超级智能体两大应用，满足您的各种需求">
  <meta property="og:type" content="website">
  <meta property="og:url" content="https://ai-assistant.example.com">
  <meta property="og:image" content="/og-image.jpg">
  
  <!-- 性能优化：预连接和预加载 -->
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  
  <!-- 添加高质量代码字体和中文优质字体 -->
  <link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;700&family=Source+Code+Pro:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@300;400;500;600&family=Roboto+Mono:wght@300;400;500;700&family=Roboto:wght@300;400;500;700;900&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Noto+Serif+SC:wght@300;400;500;700;900&display=swap" rel="stylesheet">
  
  <title>AI 智能助手</title>
  
  <!-- 关键CSS内联，提高首屏加载速度 -->
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: 'Noto Sans SC', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    
    /* 中文文本优化 */
    .chinese-text {
      font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
      line-height: 1.8;
      letter-spacing: 0.05em;
    }
    
    .chinese-serif {
      font-family: 'Noto Serif SC', serif;
      line-height: 1.9;
    }
    
    /* 代码字体预设，提高代码块渲染速度 */
    pre, code {
      font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', 'IBM Plex Mono', monospace;
      font-feature-settings: "liga" 0;
      font-variant-ligatures: none;
    }
    
    /* 页面加载动画 */
    #app-loading {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #f5f5f5;
      z-index: 9999;
      transition: opacity 0.3s ease;
    }
    
    #app-loading.hidden {
      opacity: 0;
      pointer-events: none;
    }
    
    .loading-spinner {
      width: 50px;
      height: 50px;
      border: 5px solid rgba(156, 39, 176, 0.2);
      border-radius: 50%;
      border-top-color: #9c27b0;
      animation: spin 1s ease-in-out infinite;
    }
    
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    
    .theme-dark #app-loading {
      background-color: #121212;
    }
  </style>
</head>
<body>
  <!-- 页面加载指示器 -->
  <div id="app-loading">
    <div class="loading-spinner"></div>
  </div>
  
  <div id="app"></div>
  
  <script type="module" src="/src/main.js"></script>
  
  <!-- 移除加载指示器的脚本 -->
  <script>
    window.addEventListener('load', () => {
      setTimeout(() => {
        const loader = document.getElementById('app-loading');
        if (loader) {
          loader.classList.add('hidden');
          setTimeout(() => loader.remove(), 300);
        }
      }, 500);
    });
  </script>
</body>
</html> 